package com.beta.restapi.controller.upload;

import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by lichao on 2016/12/9.
 */
public interface IImageHandler {

    boolean supportType(String pictureType);

    String saveImage(MultipartFile multipartFile, HttpServletRequest request, Integer userId);

    void deleteImage(HttpServletRequest request, Integer userId);

}
